package com.xwqiang.utils;


public enum ErrCode {


    FORBIDDEN_ERR(403,"没有权限"),
    EXCEPTION_ERR(405,"凭证已过期"),
    JWT_TOKEN_ERR(403,"未能检测到有效凭证"),
    SYSTERM_ERR(500,"服务器错误"),
    USER_NOT_EXIST(10000,"用户不存在"),
    USER_NAME_PWD_ERROR(10001,"用户名或密码错误");


    private int code = 500;

    private String msg = "服务器异常";

    private ErrCode(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }

}
